package utils

// 对于栈的+-*/只是单一一次操作
func (u *Utils) CalcBaseLogic(c1, c2 float64, opt string) float64 {
	switch opt {
	case "+":
		return c1 + c2
	case "-":
		return c1 - c2
	case "*":
		return c1 * c2
	case "/":
		return c1/c2
	}

	return 0
}
